﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YBOT_Field_Control
{

    public enum pin : int
    {
        red = 1,
        green = 2,
        yellow = 3,
        blue = 4,

        input1 = 7,
        input2 = 8,

        bell = 2,                //Bell relay
        buzzer = 3,              //Buzzer relay
        controlBoard = 0,           //Control Board tower number

        redTeam_Node = 3,           //Red team's controller Node    
        greenTeam_Node = 8,         //Green teams' controller Node
        transmitterRelay = 5,    //Controller relay number - Enable / Disable
        auto_driverRelay = 6,    //Autonomous Mode relay = Auto / Manual 
    };

    /// <summary>
    /// Common Team Variables
    /// </summary>
    public class TeamVariables
    {
        private Time tvTime = new Time();
        private Field_Control tvFC = new Field_Control();

        //public Variables
        public string teamColor;        //Team color "red" or "green"
        public int score;               //Team's score
        public int autoCount;           //Autonomous Mode Counter
        public int finalScore;          //Team's final score
        public int penalty;             //Penalty amount
        public bool dq;                 //Team DQ flag
        public string matchResult;      //Match Result string
        public bool autoFinished;       //Autonomous mode finished flag
        public int autoScore;           //Autonomous mode score
        public int midScore;            //Middle round score
        public int endGameScore;        //End of game score


        //------------------------------------------------------------------------------------------------\\
        //Current year's game variables
        //------------------------------------------------------------------------------------------------\\


        /// <summary>
        /// Resets variable
        /// </summary>
        public void reset()
        {
            score = 0;
            autoCount = 0;
            finalScore = 0;
            penalty = 0;
            dq = false;
            matchResult = null;
            autoFinished = false;
            autoScore = 0;
            midScore = 0;
            endGameScore = 0;
        }

    }

}
